import request from '@/utils/request'

// 查询查重结果列表
export function getSimilarityCount(workSubmitId) {
  return request({
    url: '/biz/similarityResult/count/' + workSubmitId,
    method: 'get',
  })
}

// 查询查重结果列表
export function listSimilarityResult(query) {
  return request({
    url: '/biz/similarityResult/list',
    method: 'get',
    params: query
  })
}

// 查询查重结果详细
export function getSimilarityResult(id) {
  return request({
    url: '/biz/similarityResult/' + id,
    method: 'get'
  })
}

// 新增查重结果
export function addSimilarityResult(data) {
  return request({
    url: '/biz/similarityResult',
    method: 'post',
    data: data
  })
}

// 修改查重结果
export function updateSimilarityResult(data) {
  return request({
    url: '/biz/similarityResult',
    method: 'put',
    data: data
  })
}

// 删除查重结果
export function delSimilarityResult(id) {
  return request({
    url: '/biz/similarityResult/' + id,
    method: 'delete'
  })
}
